import Vue from 'vue'
import VueRouter from 'vue-router'
import WorldMap from '../views/WorldMap/WorldMap.vue'
import City from '../views/City/City.vue'
import Battle from '../views/Battle/Battle.vue'
import BattleEnd from '../views/Battle/BattleEnd.vue'
import Option_Save from '../views/Option/Save.vue'
import Option_Load from '../views/Option/Load.vue'
import Option_Setting from '../views/Option/Setting.vue'
import Market from '../views/Market/Market.vue'
import Tavern from '../views/Tavern/Tavern.vue'
import Task from '../views/Task/Task.vue'
import Maze from '../views/Maze/Maze.vue'
import Start from '../views/Start.vue'
import MyTeam from '../views/MyTeam/MyTeam.vue'
import MyShop from '../views/MyShop/MyShop.vue'
import MyTask from '../views/MyTask/MyTask.vue'
import MyHouse from '../views/MyHouse/MyHouse.vue'
import MyBackpack from '../views/MyBackpack/MyBackpack.vue'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  meta: { title: '开始' },
  component: Start
},
{
  path: '/WorldMap',
  meta: { title: '大地图' },
  component: WorldMap,
  name: 'WorldMap'
},
{
  path: '/City',
  meta: { title: '城市' },
  component: City,
  name: 'City'
},
{
  path: '/MyTeam',
  meta: { title: '队伍' },
  component: MyTeam,
  name: 'MyTeam'
},
{
  path: '/MyTask',
  meta: { title: '我的任务' },
  component: MyTask,
  name: 'MyTask',
},
{
  path: '/MyShop',
  meta: { title: '店铺' },
  component: MyShop,
  name: 'MyShop'
},
{
  path: '/MyHouse',
  meta: { title: '自宅' },
  component: MyHouse,
  name: 'MyHouse'
},
{
  path: '/MyBackpack',
  meta: { title: '背包' },
  component: MyBackpack,
  name: 'MyBackpack'
},
{
  path: '/Battle',
  meta: { title: 'Battle' },
  component: Battle,
  name: 'Battle'
},
{
  path: '/BattleEnd',
  meta: { title: 'BattleEnd' },
  component: BattleEnd,
  name: 'BattleEnd'
},
{
  path: '/Option/Save',
  meta: { title: '存档' },
  component: Option_Save,
  name: 'Save'
},
{
  path: '/Option/Load',
  meta: { title: '读档' },
  component: Option_Load,
  name: 'Load'
},
{
  path: '/Option/Setting',
  meta: { title: '设置' },
  component: Option_Setting,
  name:'Setting'
},
{
  path: '/Market',
  meta: { title: '市集' },
  component: Market,
  name:'Market'
},
{
  path: '/Tavern',
  meta: { title: '酒馆' },
  component: Tavern
},
{
  path: '/Task',
  meta: { title: '悬赏' },
  component: Task,
  name:'Task'
},
{
  path: '/Maze',
  meta: { title: '迷宫地图' },
  component: Maze,
  name:'Maze'
},
]

const router = new VueRouter({
  routes
})

export default router
